<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.sql.*"%>
<%@ page import="vo.Information"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<head>
<base href="<%=basePath%>">
<title>My JSP 'info_index_show.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet"
	href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
<script
	src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>


</head>

<body>
	
	<form>
		<%
			request.setCharacterEncoding("UTF-8");
     		ArrayList l = (ArrayList) request.getAttribute("select_all_rs");
		%>
		<table class="table table-condensed">
			<caption>所有名片</caption>
			<thead>
				<tr>
					<th>姓名</th>
					<th>电话</th>
					<th>地址</th>
					<th>简介</th>
					<th></th>
					<th></th>
				</tr>
			</thead>
			<%
				for (int i = 0; i < l.size(); i++) {
					Information s = (Information) l.get(i);
					int info_id = s.getInfo_id();
			%>
			<tbody>
				<tr>
					<td><%=s.getInfo_name()%></td>
					<td><%=s.getInfo_phone()%></td>
					<td><%=s.getInfo_address()%></td>
					<td><%=s.getInfo_introduction()%></td>

				</tr>
				<%
					}
				%>
			</tbody>
		</table>
	</form>

</body>
</html>
